/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using AVOL.Entity.SystemModels;

namespace AVOL.Entity.DomainModels
{
    [Entity(TableCnName = "点检保养计划",TableName = "MaintenanceSchedule")]
    public partial class MaintenanceSchedule:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="ScheduleId")]
       [MaxLength(36)]
       [Column(TypeName="uniqueidentifier")]
       [Required(AllowEmptyStrings=false)]
       public Guid ScheduleId { get; set; }

       /// <summary>
       ///计划编码
       /// </summary>
       [Display(Name ="计划编码")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ScheduleCode { get; set; }

       /// <summary>
       ///计划名称
       /// </summary>
       [Display(Name ="计划名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ScheduleName { get; set; }

       /// <summary>
       ///计划类型
       /// </summary>
       [Display(Name ="计划类型")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ScheduleType { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int ScheduleState { get; set; }

       /// <summary>
       ///开始时间
       /// </summary>
       [Display(Name ="开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime StartTime { get; set; }

       /// <summary>
       ///结束时间
       /// </summary>
       [Display(Name ="结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime EndTime { get; set; }

       /// <summary>
       ///设备
       /// </summary>
       [Display(Name ="设备")]
       [MaxLength(36)]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid LedgerId { get; set; }

       /// <summary>
       ///点检项目
       /// </summary>
       [Display(Name ="点检项目")]
       [MaxLength(36)]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid MaintenanceItemId { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="AddName")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string AddName { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="UpdateName")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string UpdateName { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="DelName")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string DelName { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="AddTime")]
       [Column(TypeName="datetime")]
       public DateTime? AddTime { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="UpdateTime")]
       [Column(TypeName="datetime")]
       public DateTime? UpdateTime { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="DelTime")]
       [Column(TypeName="datetime")]
       public DateTime? DelTime { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Remarks { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="IsDel")]
       [Column(TypeName="int")]
       public int? IsDel { get; set; }

       
    }
}